package conlon.api;

import conlon.api.form.AccountForm;
import conlon.api.form.StoreForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * 用户登录验证接口
 * 检验登录状态
 * 获取用户数据
 * 获取权限等接口
 *
 * @author yuxue
 * @date 2019-08-08
 */
@FeignClient(name = "Seata02", url = "http://localhost:8020")
public interface Seata02Api {

    /**
     * 方法描述 创建账单
     * @param form 入参
     * @author conlon
     * @date 2021/8/17
     */
    @RequestMapping(value = "/Seata02Api/createAccount", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    public void createAccount(@RequestBody AccountForm form);

    /**
     * 方法描述 创建仓库
     * @param form 入参
     * @author conlon
     * @date 2021/8/17
     */
    @RequestMapping(value = "/Seata02Api/createStore", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    public void createStore(@RequestBody StoreForm form);

}
